package com.hdaccp.xingmu.controller;

import com.hdaccp.xingmu.dao.PropertyDao;
import com.hdaccp.xingmu.entity.Property;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/property")
public class PropertyCon {

    @Autowired
    private PropertyDao propertyDao;


    @RequestMapping("/Qquanbu")
    @ResponseBody
    public List<Property> ll(){
        List<Property> list2 = propertyDao .findAll();

        return list2;
    }
}
